Help > Reference > Macros > Collections > Words collection

Words collection

This collection contains Word objects that represent the words in the search results. Use WordList property of the Tab object to access this collection.

The following example enumerates the words in the search results of the active tab, writing them to file "c:\output.txt".

Example

Set FSO = CreateObject("Scripting.FileSystemObject")
Set Output = FSO.CreateTextFile("c:\output.txt", True)
For Each Word in App.ActiveTab.WordList
  Output.WriteLine Word.Name & " - " & Word.Count
Next

See Also

Macro Object Model

Collections

Tab.WordList

Word